// 对localstorage的操作的简单封装

export const setItem = (name, obj) => {
  localStorage.setItem(name, JSON.stringify(obj))
}

export const getItem = (name) => {
  return JSON.parse(localStorage.getItem(name))
}

export const removeItem = (name) => {
  return localStorage.removeItem(name)
}
